package com.party.core.dao.read.wechat;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.wechat.WechatMerchants;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 微信商户数据读取
 * Created by wei.li.
 *
 * @date 2017/12/7 0007
 * @time 17:49
 */

@Repository
public interface WechatMerchantsReadDao extends BaseReadDao<WechatMerchants> {

    /**
     * 获取系统配置信息
     *
     * @return 系统配置信息
     */
    WechatMerchants getSystem();

    WechatMerchants findByMerchantId(@Param("merchantId") String merchantId);

    List<WechatMerchants> listNoRelation(@Param("deployType") Integer deployType,
                                         @Param("memberId") String memberId);

    /**
     * 获取机构对应的所有商户
     *
     * @param memberId 机构id
     * @return
     */
    List<WechatMerchants> getMerchant(@Param("memberId") String memberId);
}
